<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Projects</title>
<link rel="stylesheet" type="text/css" href="css/frame.css" />

<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="content-language" content="es"/>
<script language="javascript" src="js/interlineado.js"></script>
<script language="javascript" src="project/project.js"></script>
</head>
<body onload="javascript:alternate('project');" style="padding-left:4px; padding-bottom:5px;">
	<form id="ProjectForm" method="post">
	<!-- <input type="hidden" id="project" name="project" /> -->
	<h2>Projects List</h2>
	
	<!-- Here comes pager stuff -->
	<display:table name="projectList" id="project" requestURI="/project.list.fc" class="grid" pagesize="${pageSize}" export="true">
		<display:column title="Id" headerClass="grid-header" sortable="true">
			<c:out value="${project.projectKey.id}"/>
		</display:column>
		<display:column title="Name" headerClass="grid-header" sortable="true">
			<c:out value="${project.name}"/>
		</display:column>
		<display:column title="Description" headerClass="grid-header" sortable="true">
			<c:out value="${project.description}"/>
		</display:column>
		<display:column title="Action" headerClass="grid-header" style="width:60px; text-align:center;">
				<input type="image" src="img/specify.png" title="Specify project" onclick="detailProject(${project.projectKey.id});" style="border-width:0px;" />
				<input type="image" src="img/update.png" title="Update project" onclick="loadUpdateProject(${project.projectKey.id});" style="border-width:0px;" />
				<input type="image" src="img/delete.png" title="Delete project" onclick="if(!deleteProject(${project.projectKey.id}))return false;" style="border-width:0px;" />
		</display:column>
		<display:setProperty name="export.rtf.filename" value="example.rtf"/>
    	<display:setProperty name="export.pdf" value="true" />
	</display:table>
	
	<br/>
	<br/>

	<a title="New project" class="link-button" href="javascript:loadCreateProject();">New</a>
	</form>
</body>
</html>